// pages/admin/index/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    categories: [
      {categoryId:0,cateName:'未分类'},
      {categoryId:1,cateName:'蔬菜'},
      {categoryId:2,cateName:'水果'},
      {categoryId:3,cateName:'农家'},
      {categoryId:4,cateName:'家禽'},
      {categoryId:5,cateName:'特产'},
      {categoryId:6,cateName:'手工'},
      {categoryId:7,cateName:'其他'}
    ],
    goodsList: [
      {classify:"未分类",description:"好喝又健康的山茶油",name:"兴国山茶油",
    iconUrl:"https://pic.ntimg.cn/file/20201013/31186696_111152252031_2.jpg",price:56,sales:999,specification:"1kg",status:1,storage:89,_id:'11acf1de95e1995d900c2d9e414843bd1'},
    {classify:"未分类",description:"赣南脐橙果肉鲜嫩多汁",name:"脐橙",
    iconUrl:"https://ts1.cn.mm.bing.net/th/id/R-C.e2eb7242be8b6ff3152c3546f728d3fe?rik=WpYubobcq15qxg&riu=http%3a%2f%2fimg95.699pic.com%2fphoto%2f50080%2f9655.jpg_wh860.jpg&ehk=7rmKOb6tgsmDZj%2fAlaDFDP%2bUoNo%2fdrjG6cYX8gMCvSg%3d&risl=&pid=ImgRaw&r=0",price:4,sales:9999,specification:"1kg",status:1,storage:89,_id:'11acf1de95e1995d900c2d9e414843bd1'},
      ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})